import 'package:json_annotation/json_annotation.dart'; 
  
part 'user_info.g.dart';


@JsonSerializable()
  class UserInfo extends Object {

  @JsonKey(name: 'coinCount')
  int? coinCount;

  @JsonKey(name: 'level')
  int? level;

  @JsonKey(name: 'nickname')
  String? nickname;

  @JsonKey(name: 'rank')
  String? rank;

  @JsonKey(name: 'userId')
  int? userId;

  @JsonKey(name: 'username')
  String? username;

  UserInfo(this.coinCount,this.level,this.nickname,this.rank,this.userId,this.username,);

  factory UserInfo.fromJson(Map<String, dynamic> srcJson) => _$UserInfoFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserInfoToJson(this);

}

  
